package com.sanpu.kxe.module.material;

import android.graphics.Color;

/**
 * Description：
 * Created by 薛勇军 on 2018/6/29.
 */

public class Colors {
    public static boolean isLight(int color) {
        return Math.sqrt(
                Color.red(color) * Color.red(color) * .241 +
                        Color.green(color) * Color.green(color) * .691 +
                        Color.blue(color) * Color.blue(color) * .068) > 130;
    }
}
